home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-09-08 | 936 b | 40 lines |
- package com.symantec.itools.frameworks.application.commandline;
-
- /**
- * @author Symantec Internet Tools Division
- * @version 1.0
- * @since VCafe 3.0
- */
-
- public abstract class FloatOption
- extends SingleOption
- {
- protected FloatOption()
- {
- }
-
- protected FloatOption(String[] flags)
- {
- super(flags);
- }
-
- /**
- * @param args TODO
- * @param startIndex TODO
- * @exception com.symantec.itools.frameworks.application.commandline.MissingArgumentsException
- * @since VCafe 3.0
- */
- protected float getFloat(String[] args, int startIndex)
- throws MissingArgumentsException
- {
- try
- {
- return (Float.valueOf(args[startIndex + 1]).floatValue());
- }
- catch(ArrayIndexOutOfBoundsException ex)
- {
- throw new MissingArgumentsException(args[startIndex]);
- }
- }
- }
-